package com.littlerpc.protocol.net.common;


import com.littlerpc.protocol.codec.Serializer;

/**
 *
 * @author ChengPeng
 * @date 2017/6/15
 */
public abstract class RpcServer {

    public int port;
    public Serializer serializer;

    public RpcServer(int port,Serializer serializer) {
        this.port = port;
        this.serializer = serializer;
    }

    public abstract void start();

    public abstract void stop();
}
